package draftProjects;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable 
public class Raw {
    @PrimaryKey 
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
    private Key key; 

    @Persistent 
	private Date crawlDate;
	
    @Persistent 
	private int place;

    @Persistent 
	private String name;

    @Persistent 
	private String originalName;

    @Persistent 
	private String href;

    @Persistent 
	private double rating;

    @Persistent 
	private int votes;
    
 	public Raw(int Place, String Name, String OriginalName, String Href, double Rating, int Votes, Date CrawlDate)
	{
		setPlace(Place);
		setName(Name);
		setOriginalName(OriginalName);
		setHref(Href);
		setRating(Rating);
		setVotes(Votes);
		setCrawlDate(CrawlDate);
	}

	public Key getKey() {
		return key;
	}

	public void setPlace(int place) {
		this.place = place;
	}

	public int getPlace() {
		return place;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setOriginalName(String originalName) {
		this.originalName = originalName;
	}

	public String getOriginalName() {
		return originalName;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getHref() {
		return href;
	}

	public void setRating(double rating) {
		this.rating = rating;
	}

	public double getRating() {
		return rating;
	}

	public void setVotes(int votes) {
		this.votes = votes;
	}

	public int getVotes() {
		return votes;
	}

	public void setCrawlDate(Date crawlDate) {
		this.crawlDate = crawlDate;
	}

	public Date getCrawlDate() {
		return crawlDate;
	}
}
